FROM java:8

VOLUME /tmp

# Add Maven dependencies (not shaded into the artifact; Docker-cached)
#ADD target/lib  /usr/share/maoyz/lib

ARG JAR_FILE
ADD ${JAR_FILE} /app.jar

RUN bash -c 'touch /app.jar'

EXPOSE 8082/tcp

ENTRYPOINT ["/usr/bin/java", "-jar", "/app.jar"]